package request

type TagFrontListRequest struct {
	Page     int `json:"page" form:"page" binding:"required,gte=1"`
	PageSize int `json:"page_size" form:"page_size" binding:"required,gte=1,lte=100"`
}

func (r TagFrontListRequest) GetMessages() ValidatorMessages {
	return ValidatorMessages{
		"page.required":      "页码不能为空",
		"page.gte":           "页码不能小于1",
		"page_size.required": "每页条数不能为空",
		"page_size.gte":      "每页条数不能小于1",
		"page_size.lte":      "每页条数不能大于100",
	}
}
